<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>栏目管理<!--{if $info['name']}-->--{$info['name']}<!--{/if}--></title>
        <link href="style/default.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="./javascript/jquery.js">
        </script>
        <script type="text/javascript" src="./javascript/javascript.js">
        </script>
        <script type="text/javascript">
            $(function(){
                $('select[name="sort_id"]').click(function(){
                    $('input:radio[name="sort"]').eq(2).attr('checked', true);
                });
            });
        </script>
    </head>
    <body>
        <!--{include nav.html}-->
        <div id="main">
            <div style="float:left;">
                <table class="list">
                    <tr>
                        <th width="100">
                            模块名
                        </th>
                        <th width="30">
                            状态
                        </th>
                        <th class="but">
                            <a href="{$url}&amp;m=scan"><img src="images/reload.gif"></a>
                        </th>
                    </tr>
                    <!--{foreach $list $row}-->
                    <tr name="list_{$row['name']}" {if $row['name']==$_GET['name']}class="selected"{/if}>
                        <td nowrap>
							<!--{$row['name']}-->
                        </td>
                        <td align="center">
                            {$row['status_value']}
                        </td>
                        <td class="but" align="center">
							<a href="{$url}&m=edit&name={$row['name']}"><img src="images/edit.gif"></a>
                        </td>
                    </tr><!--{/foreach}-->
                </table>
            </div>
			<!--{if $_GET['m']=='edit'}-->
            <div style="float:left;margin-left:5px;">
                <form method="post" action="{$url}&amp;m={$_GET['m']}&amp;name={$_GET['name']}">
                    <table class="list">
                        <tr>
                            <th colspan="2">
                                修改模块
                            </th>
                        </tr>
                        <tr>
                            <th>
                                模块名
                            </th>
                            <td>
                                <b><!--{$info['name']}--></b>
                            </td>
                        </tr>
                        <tr>
                            <th>
                                描述<br />200字以内
                            </th>
                            <td>
                                <textarea style="width:250px;height:50px;" name="desc">{$info['desc']}</textarea>
                            </td>
                        </tr>
                        <tr>
                            <th>
                                状态
                            </th>
                            <td>
                                <!--{Html_getSelect_lib:array('active'=>'启用', 'close'=>'禁用'),$info['status'],array('name'=>'status')}-->
                            </td>
                        </tr>
                        <tr>
                            <th colspan="2">
                                <input type="submit" name="save" value="保存">
								<input type="submit" name="apply" value="应用">
								<input type="submit" name="cancel" value="取消">
                            </th>
                        </tr>
                    </table>
                </form>
            </div>
			<!--{/if}-->
        </div>
    </body>
</html>